package com.xbh.management.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xbh.common.base.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import java.awt.*;
import java.util.List;

/**
 * @program: management-center
 * @description:
 * @author: 许宝华
 * @create: 2021-10-01 15:13
 */

@Data
public class ManMenu extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @Column(name = "menu_id")
    private Long menuId;

    @Column(name = "parent_id")
    private Long parentId;

    @Column(name = "path")
    private String path;

    @Column(name = "menu_name")
    private String menuName;

    @Column(name = "menu_type")
    private Integer menuType;

    @Column(name = "menu_sort")
    private Integer menuSort;

    @Column(name = "display_states")
    private Integer displayStates;

    @Column(name = "states")
    private Integer states;

    @Column(name = "authority_logo")
    private String authorityLogo;

    @Column(name = "component_path")
    private String componentPath;

    @Column(name = "file_path")
    private String filePath;

    @Column(name = "open_address")
    private String openAddress;

    /*
        子级菜单
     */
    @TableField(exist = false)
    private List<ManMenu> children;

}
